package cn.silver.framework.mybatis.bean;

import cn.silver.framework.core.validate.EditGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Schema(name = "BaseModel", description = "基础数据模型")
public abstract class BaseBean {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private String id;
}
